/*
 * @Descripttion: 组件业务名
 * @version:
 * @Author: lhl
 * @Date: 2024-10-23 11:24:02
 * @LastEditors: lhl
 * @LastEditTime: 2024-10-25 10:54:14
 */
import React from 'react';

export interface Route {
  path: string;
  name: string;
  element: React.ReactNode;
  meta?: {
    title?: string;
    icon?: string;
    roles?: string[];
    breadcrumb?: string;
    hidden?: boolean;
    buttons?: string[];
    menuType?: string;
    frameSrc?: string;
    permissions?: string[]; // 访问该路由所需的权限
  };
  children?: Route[];
}

export interface MenuItem {
  path: string;
  name: string;
  component: string;
  icon?: string;
  roles?: string[];
  breadcrumb?: boolean;
  hidden?: boolean;
  buttons?: string[];
  menuType?: string;
  children?: MenuItem[];
  meta?: {
    frameSrc?: string;
    permissions?: string[]; // 访问该菜单项所需的权限
  };
}
